<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<include file="__VIEW__/Common/memberTop"/>
		<script type="text/javascript" src="__STATIC__/index/js/address.js"></script>
		<script type="text/javascript">
//		异步编辑收货地址
		var ajaxEditAddress="{|U:'ajaxEditAddress'}";
//		收货地址请求地址
		var editAddress="{|U:'editAddress'}";
		//	城市联动效果
		var s=["s1","s2","s3"];
		var opt0 = ["请选择省","请选择市","请选择县（区）"];
		function setup(){
		for(i=0;i<s.length-1;i++)
		  document.getElementById(s[i]).onclick=new Function("change("+(i+1)+")");
		  change(0);
		}
		window.onload=function(){
			setup()	
		};
		</script>
		<!--个人中心导航结束-->
		<!--默认首页开始-->
		<div class="defaultIndex">
			<include file="__VIEW__/Common/memberLeft" />
			<div class="jfBox">
				<ul class="wsmjTab3">
					<li class="current" style="border-left: 1px solid #DFDFDC;"><a href="javascript:;">地址列表</a></li>
				</ul>
				<div class="box" style="padding-top: 20px;">
					<table cellpadding="0" cellspacing="0"width="730" style="margin: 25px auto;">
						<tr>
							<td align="right">
								<a href="javascript:;" id="addressAdd"><img src="__STATIC__/index/img/xinzeng.png" width="73" height="25" alt=""/></a>
							</td>
						</tr>
						<tr>
							<td bgcolor="#e8e8e8" height="3" colspan="7"></td>
						</tr>
						<tr bgcolor="#F5F5F1" style="font-size: 13px;font-weight: 700;color: #5C5C5C;height: 40px;" align="center">
							<td width="93">收件人姓名</td>
							<td>收货地区</td>
							<td>收货地址</td>
							<td width="130">送货时间</td>
							<td width="54">邮政编码</td>
							<td width="178">电话/手机</td>
							<td width="81">操作</td>
						</tr>
						<foreach from="$addressData" value="$v" key="$k">
							<tr style="font-size: 12px;color: #5C5C5C;line-height: 40px;" align="center">
								<td>{$v.aname}</td>
								<td>{$v.area}</td>
								<td>{$v.address}</td>
								<td>{$v.sendtime}</td>
								<td>{$v.postalcode}</td>
								<td>{$v.amobile}</td>
								<td><a href="javascript:;" class="editAddress" aid="{$v.aid}">编辑</a> | <a href="javascript:;" onclick="if(confirm('您确定要删除该地址吗?')) location.href='{|U:'delAddress',array('aid'=>$v['aid'])}';" >删除</a>	</td>
							</tr>	
						</foreach>
					</table>
				</div>
			</div>
		</div>
		<!--默认首页结束-->
		<!--地址新增开始-->
		<div id="loginZhezhao"></div>
		<div class="addressAdd">
			<h3>新增地址</h3>
			<span class="closeBtn"></span>
			<div class="dialog_content">
				<div class="eject_con">
					<div class="add">
						<form action="" method="post">
						<ul>
							<li>
								<p>
									收货人姓名: 
									<input type="text" name="aname" id="" required  />
									<label for="">请填写您的真实姓名</label>
								</p>
							</li>
							<li>
								<p>
									收货人手机号: 
									<input type="text" name="amobile" id="" required />
								</p>
							</li>
							<li>
								<p>
									所在地区：
									<select id="s1" name="province">
										<option>省份</option>
									</select>
									<select id="s2" name="city">
										<option>地级市</option>
									</select>
									<select id="s3" name="county">
										<option>市、县级市、县</option>
									</select>
								</p>
							</li>
							<li>
								<p>
									详细地址: 
									<input type="text" name="address" id="" required value="" />
									<label for="">不必重复填写地区</label>
								</p>
							</li>
							<li>
								<p>
									派送时间: 
									<select name="sendtime" id="">
										<option value="不限时间">不限时间</option>
										<option value="工作日派送">工作日派送</option>
										<option value="节假日派送">节假日派送</option>
									</select>
								</p>
							</li>
							<li>
								<p>
									邮政编码: 
									<input type="text" name="postalcode" id="" />
								</p>
							</li>
							<li>
								<p>
									<input type="checkbox" name="adefault" value="0" id=""/>
									 设置为默认收货地址
								</p>
							</li>
							<li>
								<p>
									<input type="hidden" name="aid" value="" />
									<input type="submit" value="保存" class="myAddress" />
								</p>
							</li>
						</ul>
						<input type="reset" id="reset" style="display: none;" />
						</form>
					</div>
				</div>
			</div>
		</div>
		<!--地址新增结束-->
		<div class="clear"></div>
		<!--底部开始-->
		<include file="__VIEW__/Common/footer"/>
